package com.peter.framework.data;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;

public class GenericDao<T> {

	protected static final PersistenceManagerFactory PersistenceManagerFactory = JDOHelper
			.getPersistenceManagerFactory("transactions-optional");
	protected static final PersistenceManager persistenceManager = PersistenceManagerFactory
			.getPersistenceManager();

	public void save(T t) {
		persistenceManager.makePersistent(t);
	}

}
